package com.mt.fpb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mt.fpb.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<User> {

    //通过openId 查询用户信息
    User getUserInfoByOpenId(String openId);

    int getNameAuthByOpenId(@Param("openId")String openId);

    void updataNameAuthAndIdCard(@Param("openId")String openId, @Param("certificateNumber")String certificateNumber);
}
